import Vue from 'vue'
export default {
  getData (state, data) {
    state.goods = data.goods
    state.ratings = data.ratings
    state.seller = data.seller
    state.goods.forEach(good => {
      good.foods.forEach(food => {
        Vue.set(food, 'count', 0)
      })
    })
  },
  getDetailFood (state, food) {
    state.detailFood = food
  }
}
